---
--- Created by heiye.
--- DateTime: 2025/8/2 下午6:06
---

-- Redis Key
local key = KEYS[1]
-- 评论 ID
local commentId = ARGV[1]
-- 过期时间 (秒)
local expireSeconds = ARGV[1]

redis.call('R.SETBIT', key, commentId, 0)

-- 设置过期时间
redis.call('EXPIRE', key, expireSeconds)

return 0